package com.gcxy.dto.evaluate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author qinlun
 * @date 2023/9/25
 */
@Data
@ApiModel(value = "学生周评价表评分信息")
public class EvaluateExcelDTO {

    @ApiModelProperty(value = "周数")
    private Integer weekNum;

    @ApiModelProperty(value = "当前周开始时间~结束时间")
    private String weeklyDateTime;

    @ApiModelProperty(value = "指导教师")
    private String teacherName;

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "任务完成情况")
    private Integer taskCompletionScore;

    @ApiModelProperty(value = "代码/文档质量")
    private Integer codeQualityScore;

    @ApiModelProperty(value = "主动性与创新意识")
    private Integer initiativeScore;

    @ApiModelProperty(value = "工作态度")
    private Integer workingAttitudeScore;

    @ApiModelProperty(value = "总分")
    private Integer totalScore;

    @ApiModelProperty(value = "评价说明")
    private String evaluationDescription;

    @ApiModelProperty(value = "指导教师签字")
    private String teacherSignature;

    public String getData(Integer cell) {
        if (cell == 0) {
            return weekNum.toString();
        } else if (cell == 1) {
            return weeklyDateTime;
        } else if (cell == 2) {
            return teacherName;
        } else if (cell == 3) {
            return projectName;
        } else if (cell == 4) {
            return taskCompletionScore.toString();
        } else if (cell == 5) {
            return codeQualityScore.toString();
        } else if (cell == 6) {
            return initiativeScore.toString();
        } else if (cell == 7) {
            return workingAttitudeScore.toString();
        } else if (cell == 8) {
            return totalScore.toString();
        } else if (cell == 9) {
            return evaluationDescription;
        } else if (cell == 10) {
            return teacherSignature;
        }
        return null;
    }
}
